package com.chixing.service;

import com.chixing.entity.OrderChange;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chixing.utils.Result;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author smith
 * @since 2025-09-30
 */
public interface IOrderChangeService extends IService<OrderChange> {
    // 获取订单可调换的房型列表
    Result getAvailableRoomTypes(Long hotelId, Long currentRoomTypeId, LocalDate checkIn, LocalDate checkOut);

    // 执行房型调换
    Result changeRoomType(Long orderId, Long oldRoomTypeId, Long newRoomTypeId);
}
